package com.lebang.common.validcode;

/**
 * @Author: hwq
 * @Date: 2019/5/17 14:17
 * @Version 1.0
 ***用户登录相关redis储存-锁key名
 */
public  enum RedisLock {


    /**
     * 手机验证码
     **/
    LOCKPHONECODE("lock:phonecode:",1),
    /**
     * 每日清空短信发送量key
     **/
    LOCK_SYS_DEL_PHONE_CODE_COUNT("lock:sys:phonecount",2);



    private String name;
    private Integer index;

    RedisLock(String name, int index) {
        this.name=name;
        this.index=index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }}
